﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HXDNB.Infrastructure.Helper
{
    public class TextHelper
    {
        public static string XmlReplaceSpecialChars(string text)
        {
            return string.IsNullOrEmpty(text) ? "" : text.Replace("&amp;", "&").Replace("&lt;", "<").Replace("&", "&amp;").Replace("<", "&lt;");
        }
    }
}
